import App from './App'
import Vue from 'vue'

// 引入uView
import uView from "uview-ui";
Vue.use(uView);

import wrNet from 'components/wrongNetwork.vue'
import loading from 'components/loading.vue'

//引入uni-simple-router
import {
	router,
	RouterMount
} from '@/router/index.js';
Vue.use(router);

// common组件
Vue.component('wrNet', wrNet)
Vue.component('loading', loading)

import {
	check
} from '@/common/utils/check.js'
import {
	storage
} from '@/common/utils/storage.js'
import {
	time
} from '@/common/utils/time.js'
import {
	count
} from '@/common/utils/count.js'
import {
	tools
} from '@/common/utils/tools.js'
import {
	keyConfig
} from '@/common/config/keyConfig.js'
import {
	show
} from '@/common/utils/show.js'
import {
	apis
} from "@/api/api.js";

//挂载工具类
Vue.prototype.$check = check
Vue.prototype.$storage = storage
Vue.prototype.$time = time
Vue.prototype.$count = count
Vue.prototype.$tools = tools
Vue.prototype.$keyConfig = keyConfig
Vue.prototype.$show = show
Vue.prototype.$apis = apis



// #ifndef VUE3
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif